Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: empty u.path, cause 'panic: runtime error: slice bounds out of r… #663

Closed
wants to merge 2 commits into from

Conversation

x931890193
Copy link

I use mediamtx

when play with VLC rtsp://@127.0.0.1:8554
image

panic: runtime error: slice bounds out of range [1:0]

goroutine 8 [running]:
github.com/bluenviron/gortsplib/v4.getPathAndQueryAndTrackID(0xc000554090)
	/Users/sato/go/pkg/mod/github.com/bluenviron/gortsplib/v4@v4.11.2/server_session.go:80 +0x30b
github.com/bluenviron/gortsplib/v4.(*ServerSession).handleRequestInner(0xc0003aa280, 0xc0005d2900, 0xc0000c6180)
	/Users/sato/go/pkg/mod/github.com/bluenviron/gortsplib/v4@v4.11.2/server_session.go:684 +0x1345
github.com/bluenviron/gortsplib/v4.(*ServerSession).runInner(0xc0003aa280)
	/Users/sato/go/pkg/mod/github.com/bluenviron/gortsplib/v4@v4.11.2/server_session.go:449 +0x2f5
github.com/bluenviron/gortsplib/v4.(*ServerSession).run(0xc0003aa280)
	/Users/sato/go/pkg/mod/github.com/bluenviron/gortsplib/v4@v4.11.2/server_session.go:402 +0x10f
created by github.com/bluenviron/gortsplib/v4.(*ServerSession).initialize in goroutine 25

ffplay is ok

ffplay -i rtsp://@127.0.0.1:8554
[tcp @ 0x7fe1a7004e40] Connection to tcp://127.0.0.1:8554?timeout=0 failed: Connection refused
rtsp://@127.0.0.1:8554: Connection refused 

@x931890193 x931890193 closed this Dec 24, 2024
@x931890193 x931890193 reopened this Dec 24, 2024
@x931890193 x931890193 closed this Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant